<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;
//Route::rule('路由表达式','路由地址','请求类型','路由参数（数组）','变量规则（数组）');

Route::get('/','Index/index'); // 首页
Route::get('/sale/:id','Sale/index'); // 单页商品
Route::get('/city','Index/city'); // 省份城市联动

//Route::get('/admin/$','/admin');//文章中心

Route::get('/tag/:name','Index/tag');//tag标签
Route::get('/tag','Index/tag');//tag标签列表

Route::get('/:column/:name','News/detail',['ext'=>'html']);//文章中心
Route::get('/:column','News/column',[],['column'=>'^(?!admin).*?$']);//获取栏目（排除admin)

Route::get('/about','Index/about'); // 关于我们
Route::get('/join','Index/join'); //招商加盟
Route::get('/message','Index/message'); //留言
//Route::get('/order','Index/order'); //订单
Route::get('/contact','Index/contact'); //联系我们
Route::get('/pc_code','Index/pc_code'); //圖片驗證碼
Route::post('/message_insert','Index/message_insert'); // 留言插入
Route::get('/page','Index/page'); // 单页
Route::get('/column','Column/index'); //栏目
Route::post('/tongji','Index/tongji'); //网站统计
Route::get('/sitemap.xml','Index/sitemap_xml'); //网站地图
Route::get('/sitemap','Index/sitemap_html'); //网站地图

Route::get('/send','Index/send'); //短信发送
Route::get('/mail','Index/mail'); //邮箱发送
Route::get('/alipay','Index/alipay'); //支付宝支付
Route::get('/alipay_notify','Index/alipay_notify'); //支付宝异步通知地址
Route::get('/alipay_return','Index/alipay_return'); //支付宝同步跳转
Route::get('/weixin_remind','Index/weixin_remind'); //微信推送



//以下是微信服务号相关
Route::get('/weixin_auth','Weixin/weixin_auth'); //微信授权获取code的跳转页面
Route::get('/create_menu','Weixin/create_menu'); //自定义底部菜单创建
Route::get('/user_info','Weixin/user_info'); //获取微信用户信息
Route::get('/user_code','Weixin/user_code'); //获取微信用户信息

//以下是微信企业号相关
Route::get('/add_user','Qyweixin/add_user'); //创建成员
Route::get('/del_user','Qyweixin/del_user'); //删除成员
Route::get('/add_department','Qyweixin/add_department'); //创建微信企业号部门
Route::get('/get_department_lists','Qyweixin/get_department_lists'); //获取微信企业号部门列表
Route::get('/del_department','Qyweixin/del_department'); //删除微信企业号部门
Route::get('/add_tags','Qyweixin/add_tags'); //创建微信企业号标签
Route::get('/get_tags_lists','Qyweixin/get_tags_lists'); //获取微信企业号标签列表
Route::get('/del_tag','Qyweixin/del_tag'); //删除微信企业号标签
Route::get('/get_qyweixin_news','Qyweixin/get_qyweixin_news'); //微信企业号接收消息
Route::post('/get_qyweixin_news','Qyweixin/get_qyweixin_news'); //微信企业号接收消息
Route::get('/news_define','Qyweixin/news_define'); //消息接口定义

//以下是小程序相关
Route::get('/xcx_verification','Xcxweixin/xcx_verification'); //验证
Route::post('/xcx_verification','Xcxweixin/xcx_verification'); //消息接收


